import fetch from '../utils/Fetch';

/**
 * 用户信息
 */
export const userInfoApi = (param = {}) => fetch({
  url: 'user/baseInfo',
  method: 'get',
  data: param || {}
});

/**
 * 获取签名
 * @param {*} param 
 */
export const wechatSignApi = (url = 'http://wechat-static.hongweimao.cn') => fetch({
  url: 'wechat/share/sign',
  method: 'get',
  params: {
    url
  }
});
